#ifndef CONTOURMAINWINDOW_H
#define CONTOURMAINWINDOW_H

#include <QLabel>
#include <QMainWindow>

#include "stlcontourwidget.h"

namespace Ui {
class ContourMainWindow;
}

class ContourMainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit ContourMainWindow(QWidget *parent = nullptr);
    ~ContourMainWindow();

public:
    void iniUI();
    void initContourWidget(std::shared_ptr<STLReader> sp_stl_reader, const ContourInfo& slice_info);
    void updateCurrentFileLabel(const qsizetype& cur_contour_indice, const qsizetype& total_contour_amount);

private:
    std::shared_ptr<STLReader> m_sp_stl_reader;
    std::shared_ptr<STLContourWidget> m_sp_contourWidget;

private:
    Ui::ContourMainWindow *ui;
    QLabel *fLabCurFile;
};

#endif // CONTOURMAINWINDOW_H


